package com.project.junM.controller;

import com.project.junM.entity.TVaccinNote;
import com.project.junM.service.TVaccinNoteService;
import org.omg.CORBA.PRIVATE_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/tVaccinNote")
public class TVaccinNoteController {
    @Autowired
    private TVaccinNoteService tVaccinNoteService;
    @PostMapping("/queryAllTVaccinNote")
    public List<TVaccinNote> queryAllTVaccinNote(HttpSession session){
       return tVaccinNoteService.queryAllTVaccinNote(session);
    }
}
